package com.health.warehouse.model.enums;


/**
 * @author zhexueqi
 * @ClassName WareHouseStatusEnum
 * @since 2024/9/1    18:23
 */
public enum WareHouseStatusEnum {

    NORMAL("正常"),
    MAINTENANCE("维护"),
    CLOSED("关闭");

    private final String value;

    WareHouseStatusEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static WareHouseStatusEnum getEnum(String value) {
        for (WareHouseStatusEnum status : WareHouseStatusEnum.values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        return null;
    }

}
